[[title="部门信息",pagesize="20",orderby="",condition=""]]
<table class="DisplayArea" cellpadding="0" cellspacing="0" align="center" style="width: 100%;
    height: 100%">
    <tr>
        <td class="headmiddle" style="height: 26px">
            #if($request.QueryString.get_Item("opt")=="1") <span id="LableTitle">新增部门信息</span>
            #else <span id="LableTitle2">修改部门信息</span> #end
        </td>
    </tr>
    <tr>
        <td style="padding: 10; vertical-align: text-top;">
            <!--edit content start-->
            <table class="singleEdit" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="tblEditPrompt">
                        $departments.Columns.get_Item("departName").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("departName").Render("FocusedTextBox,checkExists=notin;")
                    </td>
                    <td class="tblEditPrompt">
                        <!--wbscode 作为部门编码-->
                        $departments.Columns.get_Item("wbsCode").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("wbsCode").Render("FocusedTextBox,checkExists=notin;")
                    </td>
                </tr>
                <tr>
                    <td class="tblEditPrompt">
                        $departments.Columns.get_Item("picNo").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("picNo").Render("FocusedTextBox,checkExists=in;")
                    </td>     
                     <td class="tblEditPrompt">
                        $departments.Columns.get_Item("businessNo").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("businessNo").Render("FocusedTextBox,checkExists=in;")
                    </td>                
                </tr>
                <tr style="display: none;">
                    <td class="tblEditPrompt">
                        $departments.Columns.get_Item("createTime").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("createTime").Render("defaultValue=$dataContext.GetDate();")
                    </td>
                    <td class="tblEditPrompt">
                        $departments.Columns.get_Item("creatorNo").DisplayName
                    </td>
                    <td class="tblEditText">
                        $departments.Rows.get_Item(0).get_Item("creatorNo").Render()
                    </td>
                </tr>
                <tr>
                    <td class="tblEditPrompt">
                        $departments.Columns.get_Item("notes").DisplayName
                    </td>
                    <td class="tblEditText" colspan="3">
                        $departments.Rows.get_Item(0).get_Item("notes").Render()
                    </td>
                </tr>
            </table>
            <!-- edit content end-->
        </td>
    </tr>
    <tr style="height: 20px;">
        <td colspan="4" valign="middle" style="text-align: center; height: 20px;">
            <div style="height: 20px; background-color: rgb(233, 231, 215);">
                $render.RenderButton(" text=保存; displayType=button ; actionType=save; clientMethod=submitValidatePage();serverMethod=wmsCommon.saveMethod();")
                $render.RenderButton(" text=关闭; displayType=button ; actionType=close; clientMethod=wmsCommon.closeWin();")
            </div>
        </td>
    </tr>
</table>
